package com.lnb.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lnb.common.request.PageRequest;
import com.lnb.system.entity.User;
import com.lnb.system.service.UserService;
import com.lnb.system.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
* @author apple
* @description 针对表【user(用户表)】的数据库操作Service实现
* @createDate 2025-03-11 10:25:37
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Override
    public Page<User> pageList(PageRequest<Object> pageRequest) {
        Page<User> page = new Page<>(pageRequest.getPageNum(), pageRequest.getPageSize());
        return this.lambdaQuery()
                .orderByAsc(User::getId)
                .page(page);
    }
}




